package system

import (
	"github.com/gin-gonic/gin"
	"server/api"
)

type PermRouter struct {
}

//初始化权限路由
func (s *PermRouter) InitPermRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	R = Router.Group("sys-permission")
	var permissionApi = api.ApiGroupApp.SystemApiGroup.PermissionApi
	{
		R.GET("index", permissionApi.Index)
		R.POST("save", permissionApi.Save)
		R.POST("destroy", permissionApi.Destroy)
		R.POST("set-order", permissionApi.SetOrder)
	}
	return
}
